package com.dlc.yunguang.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.dlc.yunguang.net.bean.OrderDetailBean;
import com.dlc.yunguang.R;

import java.util.ArrayList;

/**
 * Created by John on 2017/7/24.
 */

public class RecycleOrderDetailAdapter extends BaseQuickAdapter<OrderDetailBean.DataBean.SpecGroupBean,BaseViewHolder> {
    public RecycleOrderDetailAdapter() {
        super(R.layout.item_cycle_order_details, new ArrayList<OrderDetailBean.DataBean.SpecGroupBean>());
    }

    @Override
    protected void convert(BaseViewHolder helper, OrderDetailBean.DataBean.SpecGroupBean item) {
        helper.setText(R.id.product_name, item.title);
        helper.setText(R.id.specification, item.spec);
        helper.setText(R.id.num, item.count);
    }
}
